Compensation memory (cm) for power application

ABSTRACT

A memory block integrated in a programmable logic device (PLD) is disclosed. The memory block includes: one or more lookup tables storing pre-populated data. The PLD includes a programmable fabric and a signal wrapper configured to provide signals between the memory block and the programmable fabric. The memory block is configured to receive input signals from the signal wrapper and generate output signals to the signal wrapper by looking up the pre-populated data corresponding to the input signals. The pre-populated data stored in the one or more lookup tables are programmably changed by programming a plurality of parameters of the programmable fabric and loading the pre-populated data to the one or more lookup tables via the signal wrapper.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application is a continuation application of U.S. patentapplication Ser. No. 15/656,972 filed Jul. 21, 2017, which claims thebenefits of and priority to U.S. Provisional Patent Applications Ser.Nos. 62/365,327 filed Jul. 21, 2016 and 62/372,739 filed Aug. 9, 2016,the disclosures of which are incorporated herein by reference in theirentirety. In addition, this application relates to a co-pending U.S.patent application Ser. No. 15/673,142 filed Aug. 9, 2017 entitled“PULSE-WIDTH MODULATION (PWM) CONTROL LOOP FOR POWER APPLICATION.”

TECHNICAL FIELD

The present disclosure relates generally to programmable logic devices(PLDs), more particularly, to a memory block integrated in a PLD usedfor compensating signals in a power application.

BACKGROUND

Programmable logic devices (PLDs) such as programmable logic array (PLA)devices, programmable array logic (PAL) devices, and field-programmablegate arrays (FPGAs) have been in the market place for a long time. ThesePLDs can be programmed by users for a wide variety of applications andindustries. Functional blocks have been integrated to expand thecapabilities of the PLDs. These functional blocks can be digital and/oranalog that are designed to perform specific functions to complement orsupplement the programmable components of the PLDs.

PLDs can have internal elements or fabrics that are programmable andconnected together to perform a specific function. More complex devicescan add functional blocks to the programming fabrics. These functionalblocks can be a combination of digital and analog circuitry, such as aserial interface, a voltage reference, a comparator, ananalog-to-digital (A/D) converter, etc. Some devices can be optimizedfor speed, power, flexibility, complexity, and/or cost. These devicescan interface with the external world via input/output (I/O) pins. TheseI/O pins can typically function up to 5V and sourcing/sinking current upto 50 mA.

Some power applications such as a power regulator and a power convertermay require a higher voltage and/or a higher current that the devicesand their I/O pins can handle. Users can add an external discretehigh-voltage power MOSFET to an existing PLD to expand its applicationto high-voltage/current power applications. The discrete high-voltagepower MOSFET requires another package, adding more cost and requiringmore board space.

SUMMARY

A memory block integrated in a programmable logic device (PLD) isdisclosed. The memory block includes: one or more lookup tables storingpre-populated data. The PLD includes a programmable fabric and a signalwrapper configured to provide signals between the memory block and theprogrammable fabric. The memory block is configured to receive inputsignals from the signal wrapper and generate output signals to thesignal wrapper by looking up the pre-populated data corresponding to theinput signals. The pre-populated data stored in the one or more lookuptables are programmably changed by programming a plurality of parametersof the programmable fabric and loading the pre-populated data to the oneor more lookup tables via the signal wrapper.

According to another embodiment, a programmable logic device (PLD)includes: a memory block comprising one or more lookup tables storingpre-populated data; a programmable fabric; and a signal wrapperconfigured to provide signals between the memory block and theprogrammable fabric. The memory block is configured to receive inputsignals from the signal wrapper and generate output signals to thesignal wrapper by looking up the pre-populated data corresponding to theinput signals. The pre-populated data stored in the one or more lookuptables are programmably changed by programming a plurality of parametersof the programmable fabric and loading the pre-populated data to the oneor more lookup tables via the signal wrapper.

The above and other preferred features, including various novel detailsof implementation and combination of events, will now be moreparticularly described with reference to the accompanying figures andpointed out in the claims. It will be understood that the particularsystems and methods described herein are shown by way of illustrationonly and not as limitations. As will be understood by those skilled inthe art, the principles and features described herein may be employed invarious and numerous embodiments without departing from the scope of thepresent disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are included as part of the presentspecification, illustrate the presently preferred embodiment andtogether with the general description given above and the detaileddescription of the various embodiments given below serve to explain andteach the principles described herein.

FIG. 1 shows a block diagram an example programmable logic device,according to one embodiment;

FIG. 2A illustrates a schematic block diagram of an analog and digitaladaptive platform, according to one embodiment;

FIG. 2B illustrates an example of the analog and digital adaptiveplatform of FIG. 2A configured as a hysteretic mode buck switchingconverter, according to one embodiment;

FIG. 3A illustrates a schematic diagram of an example hysteretic modebuck switching converter, according to one embodiment;

FIG. 3B is a signal diagram for the example hysteretic mode buckswitching converter of FIG. 3A;

FIG. 4 shows a block diagram of an exemplary programmable logic device,according to one embodiment;

FIG. 5A shows a symbolic diagram of an example compensation memory blockintegrated in a PLD, according to one embodiment;

FIG. 5B shows a symbolic diagram of another exemplary compensationmemory block including a compensation logic, according to oneembodiment;

FIG. 6A shows a block diagram of an example regulator including adigital power controller, according to one embodiment;

FIG. 6B show a Bode plot of the example regulator of FIG. 6A;

FIG. 7 shows a block diagram of an example PID digital filter, accordingto one embodiment;

FIG. 8 shows a simplified circuit diagram of an example compensationmemory block, according to one embodiment;

FIG. 9 shows a simplified circuit diagram of a voltage-mode regulator,according to one embodiment;

FIG. 10 shows a simplified block diagram of an integrated current-moderegulator, according to one embodiment; and

FIG. 11 shows a simplified circuit diagram of a current-mode regulator,according to one embodiment.

The figures are not necessarily drawn to scale and elements of similarstructures or functions are generally represented by like referencenumerals for illustrative purposes throughout the figures. The figuresare only intended to facilitate the description of the variousembodiments described herein. The figures do not describe every aspectof the teachings disclosed herein and do not limit the scope of theclaims.

DETAILED DESCRIPTION

Each of the features and teachings disclosed herein can be utilizedseparately or in conjunction with other features and teachings toprovide a memory integrated in a PLD used for compensating signals in apower application. Representative examples utilizing many of theseadditional features and teachings, both separately and in combination,are described in further detail with reference to the attached figures.This detailed description is merely intended to teach a person of skillin the art further details for practicing aspects of the presentteachings and is not intended to limit the scope of the claims.Therefore, combinations of features disclosed in the detaileddescription may not be necessary to practice the teachings in thebroadest sense, and are instead taught merely to describe particularlyrepresentative examples of the present teachings.

In the description below, for purposes of explanation only, specificnomenclature is set forth to provide a thorough understanding of thepresent disclosure. However, it will be apparent to one skilled in theart that these specific details are not required to practice theteachings of the present disclosure.

Some portions of the detailed descriptions herein are presented in termsof algorithms and symbolic representations of operations on data bitswithin a computer memory. These algorithmic descriptions andrepresentations are used by those skilled in the data processing arts toeffectively convey the substance of their work to others skilled in theart. An algorithm is here, and generally, conceived to be aself-consistent sequence of steps leading to a desired result. The stepsare those requiring physical manipulations of physical quantities.Usually, though not necessarily, these quantities take the form ofelectrical or magnetic signals capable of being stored, transferred,combined, compared, and otherwise manipulated. It has proven convenientat times, principally for reasons of common usage, to refer to thesesignals as bits, values, elements, symbols, characters, terms, numbers,or the like.

It should be borne in mind, however, that all of these and similar termsare to be associated with the appropriate physical quantities and aremerely convenient labels applied to these quantities. Unlessspecifically stated otherwise as apparent from the below discussion, itis appreciated that throughout the description, discussions utilizingterms such as “processing,” “computing,” “calculating,” “determining,”“displaying,” or the like, refer to the action and processes of acomputer system, or similar electronic computing device, thatmanipulates and transforms data represented as physical (electronic)quantities within the computer system's registers and memories intoother data similarly represented as physical quantities within thecomputer system memories or registers or other such information storage,transmission or display devices.

The algorithms presented herein are not inherently related to anyparticular computer or other apparatus. Various general-purpose systems,computer servers, or personal computers may be used with programs inaccordance with the teachings herein, or it may prove convenient toconstruct a more specialized apparatus to perform the required methodsteps. The required structure for a variety of these systems will appearfrom the description below. It will be appreciated that a variety ofprogramming languages may be used to implement the teachings of thedisclosure as described herein.

Moreover, the various features of the representative examples and thedependent claims may be combined in ways that are not specifically andexplicitly enumerated in order to provide additional useful embodimentsof the present teachings. It is also expressly noted that all valueranges or indications of groups of entities disclose every possibleintermediate value or intermediate entity for the purpose of an originaldisclosure, as well as for the purpose of restricting the claimedsubject matter. It is also expressly noted that the dimensions and theshapes of the components shown in the figures are designed to help tounderstand how the present teachings are practiced, but not intended tolimit the dimensions and the shapes shown in the examples.

The present disclosure generally describes a programmable logic device(PLD) integrated with various building blocks for providing a powersolution and minimizing cost to market and a board space. In particular,the present disclosure relates to a compensation memory block integratedin the PLD and a signal compensation scheme using the compensationmemory block. The compensation memory block can be used to generate acompensated output signal using one or more lookup tables that storepre-calculated data to improve I/O performance and efficiency for atarget application (e.g., a power regulator) of the PLD.

The present PLD can provide a power management platform for high-voltageand high-power applications such as power management, power convertors,industrial control, automobile, etc. using one or more integrated powerblocks. The present PLD can be used to integrate dissimilar rails on asingle chip.

The PLD can be configured as various types of regulators, switches,muxes, battery chargers, switching controllers, gate drivers, etc.Example configurations of the PLD include, but are not limited to, abuck regulator (current or voltage mode), a boost regulator, amultiphase buck regulator (current or voltage mode), a buck-boostregulator (voltage mode), a source side regulator, a drain-sideregulator, a push-pull DDR regulator, a load switch, a battery charger(trickle constant current or constant voltage, power path).

Each of the power blocks integrated in the present PLD has an on-demandtopology for use in various applications. The present PLD can lower thepower consumption by on-demand power on/off and sequencing rails, andon-demand monitoring to handle throttle conditions and marginal loads.In one embodiment, the present PLD can be configured as an on-demandmultiple point-of-load (POL) integrator in various forms of powerconverters such as a point-of-load (POL) converter, a POL regulator, aPOL module, and a POL system. Depending on a target application, the PLDcan be programmed to function as an integrator combining one or more ofa buck regulator (either current or voltage-mode), a boost regulator, abuck-boost regulator, a low drop-out (LDO) regulator, a load switch, amux, a battery charger, an external switching controller, and a gatedriver. The PLD can also be programmed to function as a pulse widthmodulator (PWM) for providing constant current (CC) in a current-mode ora constant voltage (CV) in a voltage-mode, a pulse frequency modulator(PFM), or a pulse skipping modulator (PSM).

The present PLD can integrate one or more applications targeted fordissimilar rails to reduce a board size and lower a package cost. Thepresent PLD enables a telemetry across different rails using one or moregeneric interfaces such as general-purpose input/output (GPIO), I2Cinterface, and serial peripheral interface (SPI) over the digital andanalog I/O pins that can include physical pads. Using one or more ofthese interfaces or over a power management bus (e.g., PMBus™), thepresent PLD can communicate with an external device for a telemetry anda remote control. The present PLD can use the telemetry and the remotecontrol for creating and integrating multiple dissimilar POLs. Thepresent PLD can provide digital multiphase operation, for example, autoalign/spread phases. The present PLD can be modified dynamically to meetthe ongoing system output needs.

According to one embodiment, the present PLD can be configured as adigital controller. A typical analog controller uses discrete analogcircuit components such as resistors, capacitors, and operationalamplifiers to generate a control output. The control output is used tocommand a system's output to match a reference. The analog controller iscontinuous in nature and lends itself to analysis with Laplace transformtools such as Bode plots. In its simplest form, the present PLD can beconfigured as a digital controller that implements an equivalent analogcontrol function with difference equations.

FIG. 1 shows a block diagram an example programmable logic device (PLD),according to one embodiment. The PLD 100 includes a programmable fabric101, one or more I/O blocks 102, one or more high voltage powertransistor blocks 103, and one or more functional blocks 104. In someembodiments, the PLD 100 is referred to as a power management integratedcircuit (PMIC). The PMIC can convert one or more low power voltageinputs to one or more high power voltage outputs or convert one or morehigh voltage inputs to one or more low power voltage outputs.

The programmable fabric 101 includes a number of uncommittedprogrammable logic elements including one or more dedicated logicelements 115 and routing channels 116. The dedicated logic elements 115can include a plurality of flip flops and logic gates. The dedicatedlogic elements 115 and the routing channels 116 of the programmablefabric 101 can be programmed to selectively and programmably connect theI/O blocks 102, the high voltage power transistor blocks 103, and thededicated logic elements 115 via the routing channels 116 to form one ormore dedicated functions.

The programmable fabric 101 can include a memory 117 including avolatile memory (e.g., a static random-access memory (SRAM)), anon-volatile memory (e.g., a flash memory), or both. The memory 117 mayinclude one or more look-up tables for digital compensation.

The I/O blocks 102 can include one or more digital and/or analog inputsand output buffers. Each of the I/O blocks 102 can receive signals fromand transmit signals to an external device in a configurable voltage andcurrent. In one embodiment, the I/O blocks 102 can handle signals of alow voltage (up to 5V) and low current (up to 50 mA).

The PLD 100 can include any number of high voltage power transistorblocks, for example, four, eight, and twelve depending on a size of thechip and requirement for an intended application. The high voltage powertransistor blocks 103, herein also referred to as scalable integratedMOSFET (SIM) blocks, can be configured and programmed to be aconstituent block or element of a more complex circuit or device. In oneembodiment, the high voltage power transistor blocks 103 can supportvoltages ranging from 12V to 80V and current up to 12 A. The voltage andcurrent limits that the high voltage power transistor blocks 103 cansupport may vary depending on an intended power application and theprocess technology used for manufacturing the PLD 100. According to oneembodiment, the high voltage power transistor blocks 103 can integrateboth n-channel and p-channel FETs.

According to one embodiment, the source and the drain of each the highvoltage power transistors in the high voltage power transistor blocks103 can be connected to external circuits and/or devices. The I/O pinsof the I/O blocks 102 are primarily used for interfacing digital andanalog sensory signals to and from an external device or component, andmay not include the source and drain (or boost pin) of the high voltagepower transistors. The presence of one or more high voltage powertransistors on the same chip can provide flexible configurations of thePLD 100 by programming the programmable fabric 101. For example,different high voltage power transistors on the same chip can connect todifferent external power rails or sensor hubs. In another example, thehigh voltage power transistors can be externally connected in series viathe source and the drain of the high voltage power transistors. Theprogrammable fabric 101 can be programmed to connect the I/O blocks 102,the high voltage power transistor blocks 103, and the integrated logicelements 115 using the programmable routing channels 116 in variousconfigurations to accommodate a wide range of power applications.

The functional blocks 104 can include one or more of digital functionalblocks 105, analog functional blocks 106, or a combination of both. Adigital functional block 105 can provide dedicated functions such as aserial interface, a communication protocol, and an application-specificcontrol function. An analog functional block 106 can be ananalog-to-digital converter (ADC), a comparator, a sensor, an amplifier,a voltage reference, a digital-to-analog converter (DAC), etc. Theparameters of each of these functional blocks 104 such as a gain, areference voltage, a frequency, a resolution can be configured by theprogrammable fabric 101. In addition, the programmable fabric 101 canprogrammably connect different functional elements within the functionalblocks 104. Some of the functional blocks 104 such as a referencevoltage can be available via external pins of the I/O blocks 102.

According to one embodiment, the programmable fabric 101 can take a formof a field programmable gate array (FPGA). The FPGA contains an array ofprogrammable logic blocks (e.g., the dedicated logic elements 115) andreconfigurable interconnects (e.g., the routing channels 116) toprogrammably wire the logical blocks together using the reconfigurableinterconnects. The logic blocks may include simple logic gates like ANDgates and XOR gates and flip-flops or more complex blocks such as memoryelements. The logic blocks and the reconfigurable interconnects can beconfigured to perform complex combinational functions in conjunctionwith the functional blocks 104.

According to one embodiment, the programmable fabric 101 may include adigital fabric and an analog fabric. The digital fabric corresponds to aportion of the programmable fabric 101 that provides digital interfacesamong the constituent blocks including the I/O blocks 102, the highvoltage power transistor blocks 103, and the digital functional blocks105. For example, the digital fabric can provide the connectivity amongthe integrated analog blocks, digital logic elements, timers, I/Os, etc.The analog fabric corresponds to a portion of the programmable fabric101 to provide analog interfaces with one or more external telemetry andsensor blocks, an I2C interface, an SPI interface, etc.

According to one embodiment, a high voltage power transistor implementedin the high voltage power transistor blocks 103 is a software-definedand programmable, configurable, optimizable, and scalable power MOSFET.The PLD 100 including such power MOSFETs can accelerate time to marketfor new products and standards and achieve a competitive response whilelowering the capital and operational expenditure, and inventory. Theprogrammability of the present PLD can provide flexibility in design andfacilitate the implementation of user-configurable andfield-programmable solutions and topologies in a developmental stage ofa new product as well as in a commercialization stage for providingoptimizable solutions to customers by offering flexible solutionsdepending on the needs and requirements of a target application.

The present PLD includes one or more analog functional blocks that areadaptive for providing various user-configurable analog functions. Theadaptive analog blocks are wrapped with respective signal wrappers onthe programmable fabric. The programmable fabric provides a programmableenvironment to build user-configurable custom analog functions bydigitally or combining one or more adaptive analog blocks by selectivelyand programmably interconnecting and combining the signal wrappers thatprovide interface to the adaptive analog blocks. The signal wrappers ofthe adaptive analog blocks eliminate the need to directly interconnectand/or interface analog blocks in an analog fashion with a variety rangeof voltages, currents, common mode, isolation, noise isolation issues,or the like. Using the present adaptive analog blocks, analog functionscan be readily built on demand targeting specific applications whilemeeting the requirements for the target applications.

According to one embodiment, the present disclosure provides an analogand digital adaptive platform for implementing various analog functionsusing adaptive analog blocks that are configurable and programmable in adigital domain. The adaptive analog blocks that are wrapped with signalwrappers can provide ease of fabrication and packaging various customanalog functions in a small chip size with a low cost compared toconventional analog ICs. The present adaptive platform can provideflexibility and adaptability for various circuit designs andimplementing on-demand analog functions adaptable to variousapplications on a single chip.

Examples of analog functions that the present adaptive platform canprovide include, but are not limited to, switching converters, linearregulators, load switches, battery chargers, and external switchingcontrollers. Beyond power applications, a broad spectrum of applicationsthat the present adaptive platform is applicable to includes Internet ofThings (IoT) devices, drones, electric vehicles (EVs), robotics, andvarious industrial applications utilizing external sensors forproximity, motion, position, tachometer, pitch, axis, yaw, light,pressure, temperature, humidity. The signal wrapper of the presentadaptive platform can provide a digital PID control to various analogactuators including, but not limited to, DC motors, servo motors,stepper motors, motion control, breakers, fan controllers.

FIG. 2A illustrates a schematic block diagram of an analog and digitaladaptive platform, according to one embodiment. The analog and digitaladaptive platform 200A includes a plurality of analog and digitaladaptive blocks 201 interconnected with signal wrappers 202 on aprogrammable fabric 250. Referring to FIG. 1, the adaptive blocks 201correspond to any of the high voltage power transistor blocks 103, thedigital functional blocks 105, and the analog functional blocks 106.Each of the adaptive blocks 201 arranged on the programmable fabric 250is user-configurable and programmable by the coupled signal wrapper 202to provide a user-configurable function for a target application or oneor more circuit components of a target application.

A signal wrapper 202 provides an interface circuitry required for thecoupled adaptive block 201 to interconnect with another adaptive block201 and/or an I/O block (e.g., I/O block 102 of FIG. 1) via theprogrammable fabric 250. According to one embodiment, the analog anddigital adaptive platform 200A includes a predetermined number ofadaptive blocks 201. Examples of the adaptive blocks 201 include, butare not limited to, an analog-to-digital converter (ADC) block, acomparator block, a memory block, a pulse-width modulation (PWM) block,a voltage reference block, and a timer block. In conjunction with one ormore programmable analog and digital input/output (I/O) blocks (e.g.,the I/O blocks 102 of FIG. 1), these adaptive blocks 201 can beprogrammably configured to build a variety of analog circuitry forvarious applications via the programmable fabric 250.

According to one embodiment, a signal wrapper 202 can include both adigital wrapper for providing interfaces for digital signals and ananalog wrapper for providing interfaces for analog signals to thecorresponding adaptive blocks 201. The programmable fabric 250 caninclude a digital fabric and an analog fabric. In this case, the digitalwrapper of the signal wrapper 202 interfaces with the digital fabric ofthe programmable fabric 250, and the analog wrapper of the signalwrapper 202 interfaces with the analog fabric of the programmable fabric250.

According to one embodiment, each of the adaptive blocks 201 or acombination of multiple adaptive blocks 201 is programmed over theprogrammable fabric 250 to build a variety of analog circuitry forvarious power applications. Examples of such power applications include,but are not limited to a switching converter, a linear regulator, a loadswitch, a sensor, a battery charger, and an external switchingcontroller. According to other embodiments, each of the adaptive blocks201 or a combination of multiple adaptive blocks 201 is programmablyconfigured to build a variety of analog circuitry for various non-powerapplications. Examples of non-power applications include, but are notlimited to, an Internet of Things (IoT) device, a drone, an electricvehicle (EV), a robot, and various industrial applications utilizing oneor more external sensors for sensing proximity, motion, position,tachometer, pitch, axis, yaw, light, pressure, temperature, humidity,etc. In conjunction with the adaptive blocks 201 and one or more offunctional blocks (e.g., the functional blocks 104 of FIG. 1) and I/Oblocks (e.g., the I/O blocks 102 of FIG. 1), the signal wrappers 202 ofthe analog and digital adaptive platform 200A can provide a digitalproportional-integral-derivative (PID) control to various analogactuators including, but not limited to, a DC motor, a servo motor, astepper motor, a motion control, breakers, and a fan controller.

FIG. 2B illustrates an example of the analog and digital adaptiveplatform of FIG. 2A configured as a hysteretic mode buck switchingconverter, according to one embodiment. The hysteretic mode buckswitching converter 200B may also be referred to as a bang-bang buckswitching converter. The hysteretic mode buck switching converter 200Bis a DC-to-DC step-down power converter that converts an input voltageVin 221 to an output voltage Vout 222 that is lower than the inputvoltage. The output current may be stepped up while the input voltage isstepped down. The hysteretic mode buck switching converter 200B canprovide an efficient power conversion compared to a linear regulatorthat lowers the input voltage by dissipating power as heat withoutstepping up the output current.

The analog and digital adaptive platform 200B can be an example of theanalog and digital adaptive platform 200A shown in FIG. 2A. For example,the adaptive blocks 211, 213, 215 and 217 are instances of the adaptiveblocks 201 of FIG. 2A, the signal wrappers 212, 214, 216, and 218 areinstances of the signal wrapper 202 of FIG. 2A. Each of the adaptiveblocks 211, 213, 215 and 217 can be one of a comparator block, a memoryblock, a PWM block, a voltage reference block, and a timer block.

In the present example, the adaptive block 215 is a comparator block.According to one embodiment, the comparator block is included in theanalog functional blocks 106 of FIG. 1. The adaptive blocks 211 and 213drive a filter including an inductor 220 and a capacitor 225 in asynchronous mode. The feedback voltage, V_(feedback), of the filteroutput 222 (e.g., 1.0V, 4 A) is connected to the comparator block 215.Various internal connections and routing channels are configured tointerconnect the adaptive blocks 211, 213, 215 and 217. For example, theadaptive block 217 and the adaptive block 215 are interconnected usingthe signal wrapper 218 that provides a digital interface to the adaptiveblock 217, and the signal wrapper 216 that provides a digital interfaceto the adaptive block 215 via the programmable fabric 250. In a similarfashion, the adaptive block 217 and the adaptive block 213 can beinterconnected with the signal wrapper 218 and signal wrapper 214, andthe adaptive block 217 and the adaptive block 211 can be interconnectedwith the signal wrapper 218 and the signal wrapper 212 via theprogrammable fabric 250. In this example, the adaptive blocks 211, 213,215 and 217 are configured as a hysteretic mode buck switching converterto provide a stepped-down voltage output.

FIG. 3A illustrates a schematic diagram of an example hysteretic modebuck switching converter, according to one embodiment. The hystereticmode buck switching converter shown in FIG. 3A may also be referred toas a bang-bang buck switching converter. FIG. 3B is a signal diagram forthe example hysteretic mode buck switching converter of FIG. 3A.Although the present example shows an example of the analog and digitaladaptive platform configured as a hysteretic mode buck switchingconverter, it is understood that the present adaptive platform can beconfigured as other devices including, but not limited to, avoltage-mode buck switching converter, a current-mode buck switchingconverter, a boost regulator, a buck-boost regulator, a low drop-out(LDO) regulator, a load switch, a mux, a battery charger, an externalswitching controller, a gate driver, and an integrator combining one ormore thereof.

The programmable fabric can include a plurality of adaptive blocks, 301,303, 305, 307, 309, 311, 313, and 315, each of which wrapped withrespective signal wrappers 302, 304, 306, 308, 310, 312, 314, and 316.Among the adaptive blocks, the adaptive blocks 301 and 303 are highvoltage power transistor blocks, the adaptive block 305 is a comparatorblock, the adaptive blocks 309, 311, 313, and 315 are timer blocks, andthe adaptive block 307 is a voltage reference block.

Each of the high voltage power transistor blocks (e.g., the high voltagepower transistor blocks 301 and 303) can be programmed for a specifictarget application and configured as, for example, but not limited to, aswitcher, a linear operator, a current sense, and a protector. In thepresent example, the high voltage power transistor blocks 301 and 303are programmed and configured as a switcher driving a high currentoutput.

The comparator block 305 is configured to compare a voltage differencebetween an internal reference from the voltage reference block 307 andan external analog I/O signal V_(feedback).

A timer block (e.g., the timer blocks 309, 311, 313, and 315) can beprogrammed to generate nanosecond, microsecond, and millisecond delaysor pulses. The timer block can provide a precision dead-time control forimproved efficiency. In the present example, the timer blocks 309 and315 provide a constant-on-time pulse, and the timer blocks 311 and 313are timers with a fixed delay specified by configuration.

A voltage reference block (e.g., the voltage reference block 307) can beused to provide a digitally-adjustable precision voltage reference. Thevoltage reference block can also provide protection for over current(OCP), over voltage (OVP), over temperature protection (OTP), undervoltage-lockout (UVLO) references. In the present example, the voltagereference block 307 provides a fixed voltage reference specified atconfiguration, which provides the desired output voltage, V_(ref).

The high voltage power transistor blocks 301 and 303 can drive thefilter inductor 320 and the capacitor 321 in a synchronous mode asdescribed in the signal diagram of FIG. 3B. The feedback voltage,V_(feedback), from the filter output 322, V_(out), is externallyconnected to the comparator block 305. The comparator block 305 comparesthe feedback voltage V_(feedback) with a reference voltage, V_(ref) toproduce an error signal, Error=true if V_(ref)≥V_(feedback), or false ifV_(ref)<V_(feedback). The reference voltage, V_(ref) is supplied fromthe voltage reference block 307 interconnected with the signal wrapper308 and the signal wrapper 306 via the programmable fabric 350.

When the error signal 305 is true, the D-type flip-flop in the signalwrapper 304 is reset to turn off the high voltage power transistor block303 and start the delay timer block 313. After this delay, the timerblock 309 generates a constant-on-time pulse to turn on the high voltagepower transistor block 301 through the connection made with signalwrapper 310 and signal wrapper 302 via the programmable fabric 350. Thehigh voltage power transistor block 301 drives the inductor 320 tocharge the output capacitor 321. When the pulse is completed, thefalling edge of the pulse starts the minimum low-side ON pulse of thetimer block 315 and sets the D-type flip-flop in the signal wrapper 304after a fixed delay determined by the timer block 311 as shown in thesignal diagram of FIG. 3B through the connection established with thesignal wrapper 312 and the signal wrapper 304, and the connectionestablished with the signal wrapper 310 and the signal wrapper 316 viathe programmable fabric 350. The fixed delay is specified to ensure thatthe high-drive voltage power transistor block 301 is off, dead time,before the low-drive high voltage power transistor block 303 is turnedon, preventing momentary shoot-through current as shown in the signaldiagram of FIG. 3B. The D-type flip-flop in the signal wrapper 304 turnson the high voltage power transistor block 303 driving the inductor 320to discharge the output capacitor 321.

The next cycle begins by first tuning off the low-side high voltagepower transistor block 303 with a fixed delay reset pulse from the timerblock 313 where the fixed delay is specified to ensure that thelow-drive high voltage power transistor block 303 is off, dead time,before the high-drive voltage power transistor block 301 is turned on bythe timer block 309, again, preventing momentary shoot-through currentas shown in the signal diagram of FIG. 3B.

FIG. 4 shows a block diagram of an exemplary programmable logic device,according to one embodiment. The programmable fabric 101 of FIG. 1 mayinclude an analog fabric 411 and a digital fabric 412. The analog fabric411 corresponds to a portion of the programmable fabric 101 to provideanalog interfaces with one or more external telemetry and sensor blocks,an I2C interface, an SPI interface, etc. The digital fabric 412corresponds to a portion of the programmable fabric 101 that providesdigital interfaces among the constituent blocks including the highvoltage power transistor blocks 103, and the digital functional blocks105 including a voltage reference (Nref array) and a timer array. Forexample, the digital fabric 412 can provide a power path and theconnectivity among the integrated analog blocks, digital logic elements,timer arrays, I/O blocks, etc.

It is noted that FIG. 4 is only an example of the present PLD, and it isunderstood that the present PLD can include any number of power andsensor blocks, for example, four, eight, and twelve power and sensorblocks, and any type of digital and/or analog I/O interfaces withoutdeviating from the scope of the present disclosure.

The present PLD can provide a software-defined and programmable,configurable, and optimizable power MOSFET. The present PLD includingsoftware-defined, programmable, and scalable power MOSFETs canaccelerate time to market optimizable for new products and standards,accelerate competitive response, lower capital expenditure, operationalexpenditure, and inventory. The programming and configurability of thepresent PLD can be easily used to implement new ideas, solutions, andtopologies.

The software component of the PLD can be programmed to configure variouscomponents, elements, and functions the PLD to configure the PLD asvarious types of regulators, switches, muxes, battery chargers,switching controllers, gate drivers, etc. Exemplary applications of thepresent PLD include, but are not limited to, a buck regulator (currentor voltage-mode), a boost regulator, a multiphase buck regulator(current or voltage-mode), a buck-boost regulator (voltage-mode), asource side regulator, a drain-side regulator, a push-pull DDRregulator, a load switch, a battery charger (trickle constant current orconstant voltage, power path).

The PLD can be configured as a power regulator and a power converterused for various power applications. The compensation memory blockintegrated in the PLD can programmably provide fine tuning of signalsover a wide range with an accuracy and adaptability necessary for anintended application.

The present compensation memory block can be utilized in various targetapplications for the PLD. The present compensation memory block canprovide a digital control loop that has various industrial, automobile,and power applications. The present compensation memory block canprovide a digital control loop without analog circuit components formultipliers, thus save power and a surface area of the PLD. In addition,the present compensation memory block can be used to generate anon-linear control. The present compensation memory block can serve as adigital filter for signal processing application as well. The presentcompensation memory block can serve as an adaptive circuit to meetchanging system needs. The present compensation memory can also bedynamically programmed to generate a specific response of a system.

In one embodiment, the present compensation memory block storespre-populated data in one or more lookup tables. For a given errorsignal, the pre-populated data stored in the lookup tables are used togenerate a desired control-loop output signal for a power application.The control loop implemented with the present compensation memory blockis advantageous over conventional control loop logics because it doesnot require computing the output signal with multipliers, thus canimprove the input/output (I/O) performance and efficiency while savingpower consumption and surface area of the PLD. In some embodiments, thepresent compensation memory block can also be used for generatingnon-linear output signals. In addition, the compensation memory blockcan also serve as a digital filter for various signal processingapplications. The present compensation memory block can be implementedwith additional features such as a gain adjust, a range extension, apole extension, etc. The control loop implemented with the presentcompensation memory block can be programmably configured to provideproportional (P), proportional-integral (PI), proportional-derivative(PD), or proportional-integral-derivative (PID) controls.

In one embodiment, the present compensation memory block stores multipleseries of pre-populated data in one or more lookup tables that can bedynamically set to generate different desire output signals. In anotherembodiment, the present compensation memory block can use some sets ofpre-populated data in one or more lookup tables while adapting to finetune an output response by writing new data in one or more lookuptables.

FIG. 5A shows a symbolic diagram of an example compensation memory blockintegrated in a PLD, according to one embodiment. The PLD can includemore than one compensation memory block. Referring to FIG. 1, thecompensation memory block can be included in the memory 117 of theprogrammable fabric 101 or a memory block contained in the digitalfunctional blocks 105. The compensation memory block can operateindividually or jointly in serial or parallel manner to achieve thedesired operation. In some embodiments, more compensation memory blocksin the PLD can be cascade with other compensation memory blocks in oneor more PLDs to achieve desired results.

The compensation memory block 550 a shown in FIG. 5A includes one RAMblock 551 a; however, it is understood that the compensation memoryblock 550 a can include any number RAM blocks corresponding to thecompensation scheme and/or the number of poles or zeros of thecompensation filter, and/or an order of the system. The RANI block 551 ais a static random-access memory (SRAM) block with a single input portfor the input signal Din and a single output port for the output signalDout. For example, the RAM block 551 a can be a 4K memory blockincluding a 256-words by 18-bit lookup table. The 256-words correspondto a resolution of the data stored in the RAM block 551 a. For a giveninput signal Din, for example, an error voltage of an output signal of aregulator, the RANI block 551 a output is a precomputed product of thevoltage error input multiplied by a predetermined constant c. Thecalculation of the product is done within the compensation memory blockby looking up a corresponding row in the lookup table for a given inputinstead of calculating an actual product and performing I/Os using anarithmetic logic external to the compensation memory block. For a rangeof error inputs expected in a target application, the data of the lookuptable can be pre-populated dynamically and programmably to cover notonly the expected range of error inputs but also a broader range oferror inputs using a shifting and mirroring of the input signals usingthe same lookup tables. For example, the resolution of the data storedin the RAM block 551 a is 1 mV, and the range of the input signal Din is0-255 mV. Each row of the lookup table stores a precomputed product ofthe error voltage multiplied by the predetermined constant c. The sizeof data stored in each row of the lookup table may vary, for example a18-bit data in the present example. The range of the output signal Doutcan cover, therefore, is c*(0-255 mV).

The output signal Dout can be used for providing a digital compensationof the output signal of a regulator. Depending on the accuracyrequirement of a target application, the size of the RAM block 551 a canbe programmably and dynamically reduced or expanded. For example, whenthe PLD is configured for a target application (e.g., a buck regulator),the programmable fabric of the PLD can be programmed to use apredetermined constant c1 using a 4K memory block including a 256-wordsby 18-bit lookup table. The same PLD may be reconfigured for anothertarget application (e.g., a boost regulator), and the programmablefabric of the PLD can be programmed to use a predetermined constant c2using an 8K memory block including a 512-words by 18-bit lookup table.

Referring to FIG. 4, the digital fabric 412 can include one or morecompensation memory blocks. The RAM block 551 a can provide a singleport memory to the digital fabric 412. Because the RAM block 551 a isintrinsically volatile (i.e., data stored therein is eventually lostwhen it is not powered), the data in the RANI block 551 a can beinitialized with a set of data stored in a non-volatile memory of thePLD or with a set of data provided from an external device via I/Oblocks of the PLD during or after the PLD is powered up and initialized.In another embodiment, the RAM block 551 a is a multi-port memory wherethe memory spaces can be written and read simultaneously allowing onesection of the RANI block 551 a to generate the output while anothersection the RANI block 551 a is written to store other computed valuesthat may be used to generate a different output response. Suchoperations allow the compensation memory block to be adaptive orself-tuning.

FIG. 5B shows a symbolic diagram of another exemplary compensationmemory block including a compensation logic, according to oneembodiment. The compensation memory block 550 b includes a RAM block 551b and a compensation logic 552. For example, the RAM block 551 b is a256-words by 18-bit SRAM block with a single input port for an inputsignal Din and a single output port. The RAM block 551 b is expandableto a 512-words by 18-bit SRAM block. It is noted that the size of theRAM blocks 551 a and 551 b may be determined and dynamically configuredbased on a target application (e.g., a buck regulator, a boostregulator) of the PLD and/or the size of the RAM memory blocks availablein the PLD.

The output of the RAM block 551 b passes through the compensation logic552. Here, the output of the RANI block 551 can include one or moreprecomputed products as explained above with reference to FIG. 5A.According to one embodiment, the compensation logic 552 providesproportional-integral-differential (PID) compensation of the outputsignal of a regulator. In this case, the RANI block 551 b can includethree lookup tables, each corresponding to a proportional loop, aderivative loop, and an integral loop of a PID compensator. The outputsignal Dout of the compensation logic 552 is fed to the digital fabricof the PLD to control an analog switch of the regulator. The details ofthe PID compensator will be discussed below with reference to FIGS. 6Athrough 8. Various parameters of the RAM block 551 b are programmablevia the programmable fabric of the PLD. Examples of the programmableparameters of the RANI block 551 b include, but are not limited to, asize, a resolution, a constant used to generate the lookup table, andthe number of lookup tables to use for the signal compensation. Inanother embodiment, the RANI block 551 b can serve as a memorygenerating a direct response of the input Din thus creating afeed-forward control loop.

The compensation memory block 550 b can provide PID compensation oferror signals using the integrated compensation logic 552 withoutexternal passives or an arithmetic unit. The user can adjust abandwidth, a gain, and a phase margin of the compensation logic 551 viathe signal wrapper associated with the compensation memory block 550 b.For example, a user can interactively adjust the proportional gain Kpand the gains Fz1 and Fz2 (shown in FIG. 6B) to effectively adjust thederivative and integral gains Kd and Ki as well as the bandwidth and thephase margin. In another embodiment, the compensation memory block 550 bcan have multiple tables supporting various bandwidth, gain, and phasemargin to respond to different system needs.

According to one embodiment, the control loop is used to track abehavior and provide a non-linear control of a non-linear system whoseresponse can be approximated with a series of linearized equations.These linearization equations are typically evaluated in a set ofoperating points that capture key modes of the operation. Linearcontrollers are then synthesized for the system in the key points. Thepresent compensation memory block can store a plurality of linearcontroller coefficients in the RAM block 551 b reducing number of logicsrequired to implement a non-linear controller using parallel logics.

According to one embodiment, the compensation memory block hasconfigurable coarse/fine windowing options. For example, the minimumfine window and minimum coarse windows are 64 or 128. The multiplegranularity windows can reduce the size of the compensation memory blockwhile providing an efficient PID compensation of the signal. Thewindowing options can be programmed through the programmable fabric andthe signal wrapper of the compensation memory block 550 b. In someembodiments, the coarse and fine windows range can overlap, and thecompensation memory block can provide a smoothing effect to alleviate adetrimental effect of a direct transition (e.g., bumping) between thecoarse and fine ranges.

According to one embodiment, the PID compensation logic 552 provides adigital control compensating the error voltage using a digital filter.The digital filter is programmable using the programmable fabric of thePLD. The required number of poles and zeros in the digital filterdepends on a target application. For example, for a voltage-mode buckregulator, two zeros are needed to compensate for the second-order powerstage, and a pole needs to be located at the origin to minimize asteady-state error. In some embodiments, the compensation logic 552 andRAM block 552 b can be programmed as a finite impulse response (FIR)filter or infinite response filter (IIR).

According to one embodiment, the present compensation memory block has adynamic clocking system that can reduce a delay between the input errorand output control signals. For example, the flip-flop 823 shown in FIG.8 can contain the last-stage computed value that is based on the errormagnitude Emag[7:0] received at the RAM 811, while the flip-flops 816,817, and 818 may be pre-computed.

The digital filter employed by the compensation logic 552 can beexpressed as the following discrete time-domain difference equation:

P[n]=P[n−1]*a1+P[n−2]*a2+E[n]*a+E[n−1]*b+E[n−2]*c,

where n is a discrete time of the digital filter in a time domain, andP[n] is a duty cycle. The duty cycle P[n] is a pulse width of thehigh-side switch in a voltage mode operation or a target peak current ina current mode operation. The error signal E that is input to thecompensation logic 552 is defined as a difference between a referencevoltage Vref and the output voltage Vout, E[n]=Vref−Vout[n]. The outputvoltage Vout refers to an output signal of a regulator (e.g., a highvoltage power transistor block) that is regulated against the referencevoltage Vref

FIG. 6A shows a block diagram of an example regulator including adigital power controller, according to one embodiment. The regulator 650includes analog blocks 651 and a digital power controller 661. Theanalog blocks 651 includes a switch 652 (e.g., a high voltage powertransistor), analog circuits 653 and an amplifier 654. The switch 652receives PWM signals generated by the digital power controller 661 toconvert an input voltage Vin to provide a regulated output voltage Voutwith respect to a reference voltage Vref. The analog circuits 653 may beexternal to the PLD. The compensation memory block can be included inthe digital filter 663.

The digital power controller 661 includes an A/D converter 662 and adigital filter 663. The analog signal of the output voltage Vout isconverted to a digital signal using the A/D converter 662 of the digitalpower controller 661 and fed to the digital filter 663. The digitalfilter 663 generates the PWM signal to controller the switch 652 of theanalog blocks using the present compensation memory. According to oneembodiment, the regulator 650 is a buck regulator if the input voltageVin is higher than the output voltage Vout. According to anotherembodiment, the regulator 650 is a boost regulator if the output voltageVout is higher than the input voltage Vin.

The constants a1 and a2 are determined based on a pole compensationscheme of the digital filter 663. The pole compensation scheme is alsoprogrammable via the programmable fabric of the PLD. For example, forone-pole compensation, a1 is set to 1, and a2 is set to 0. For two-polecompensation, both a1 and a2 are set to 0.5. It is noted that any otherpole compensation scheme may be used without deviating from the scope ofthe present disclosure. The constants a, b, and c are adjustable tosupport either a P, PI, PD, and PID control loop. In an alternativeembodiment, the constants a, b, and c can be changed in real time tosupport a dynamic control loop.

FIG. 6B show a Bode plot of the example regulator of FIG. 6A. In aclosed loop system, a feedback control loop implemented using thecompensation memory block requires a stability analysis of the system.For a linear system, the stability analysis can be done by determiningan open loop gain and plotting its magnitude and phase in a Bode plot.From the Bode plot, the system's performance metrics including abandwidth (0 dB crossover), a gain margin, and a phase margin can bedetermined.

The Bode plot 680 shows a bandwidth, a gain, and a phase marginaccording to Kp=Gain, Ki=2pi*Kp*Fz, and Kd=Kp/(2pi*Fz2). A user canadjust the proportional gain Kp as well as the gains Fz1 and Fz2 toachieve a desired phase margin (e.g., a phase margin being greater than45 degrees) and a crossover frequency Fc being less than one tenth theswitching frequency Fsw. In one embodiment, the Bode plot 680 isprovided to a user as a graphical user interface in which the user canmove the proportional gain Kp up and down to change the value, and thegains Fz1 and Fz2 horizontally, and the calculated phase margin and thecrossover frequency Fc are updated accordingly. Other tools such aspol-zero analysis and Nyquist plots can be used to analyze the stabilityof the compensation memory block.

FIG. 7 shows a block diagram of an example PID digital filter, accordingto one embodiment. The block Z⁻¹ denotes a delay operator. Referring toFIG. 5B, the compensation memory 550 b stores a set of predeterminedproducts, a*E[n], b*E[n−1], and c*E[n−2]. The precomputed set ofproducts are added using adder blocks 755 and 756.

According to one embodiment, the precomputed set of products are storedin a lookup table in the RANI block of the compensation memory. In someembodiments, multiple compensation memory blocks can be cascaded to forma multi-zeros multi-poles control loop system. In the case of a one-polePID compensation where a1=1 and a2=0, the RAM block stores pre-computedproducts for each of E[n]*a, E[n−1]*b, and E[n−2]*c in three separatelookup tables. For an error input, for example, E[n], E[n−1], andE[n−2], the compensation memory block looks up the precomputed productsof a*E[n], b*E[n−1], and c*E[n−2] instead of calculating their productsusing a computational resource. In the case of a more complex multipolecompensation scheme, for example, two-pole compensation (a1=a2=0.5), theRAM block stores pre-computed products for each of E[n]*a, E[n−1]*b,E[n−2]*c. P[n−1], and P[n] are saved and shifted by 1-bit to perform themultiplication of y by a1*P[n−1] and a2*P[n], respectively. Therefore,the digital filter may not require registers, memory, and a processorfor calculating the products. The constants, a, b, and c can beoptimized for stability, regulation, and transient response for a targetapplication of the PLD. The constants a, b, and c are programmable bythe programmable fabric of the PLD and can be dynamically loaded orupdated. The dynamically loaded constants a, b, and c can improve anefficiency and a transient response and can further compensatevariations of passive components over time. In some embodiments, theRANI block can store non-linear data for providing a non-linear controlinstead of storing precomputed products. In addition, the RANI block canstore values for different a, b, and c to allow the selection of themost suitable values to generate the desired output.

FIG. 8 shows a simplified circuit diagram of an example compensationmemory block, according to one embodiment. The compensation memory block850 receives a plurality of signals from the digital fabric of theprogrammable fabric. Goacc is a clock signal to load a registeraccumulator 823. Go[2:0] are clock signals to load registers 816, 817,and 818. The load registers 816, 817, and 818 are loaded with productsfrom the RAM 811. For example, the RAM 811 one or more lookup tablesthat are identified by their unique address in response to the inputData_in. EsignCLK is a clock signal to load a ShiftBits register 815.ShiftBits[1:0] and Esign are shift and error polarity signal to beloaded into the ShiftBits register 815.

RAMSel is an input signal to a RANI output data selector 812 that canselect an internal or an external RAM. Data_in[17:0] are 18-bit inputsignals to the compensation memory block 850. Data_in[17:0] includes anaddress of a lookup table based on the error magnitude Emag[7:0]. Theerror magnitude Emag[7:0] is 8-bit input data corresponding to adigitized error. For example, the error magnitude Emag[7:0] is apositive value loaded to the RAM 811. A negative error can be processedusing the positive error magnitude Emag[7:0] with the error sign Esign.For example, the RAM 811 is a 256×18 single port static RAM. CLK is aclock signal to load the RANI address. RST is a reset signal for theregisters 815, 816, 817, 818, and the register accumulator 823. Saten0,Saten1, and Saten2 are signals that enable saturation of the adders 820,821, and 822, respectively. Psel[2:0] are compensation output dataselect signals.

The circuit component 813 is a shift operator. The circuit component 814is a 2's compliment operator. The register 816 stores b*E[n−1], theregister 817 stores c*E[n−2], and the register 818 stores c*E[n−1].Here, the error signal E[n] and the delayed error signals E[n−1] andE[n−2] denote the outputs from the shift operator 813 and the 2'scompliment operator. The register accumulator 823 stores the PID datathat are generated at the output of the adder 822. A multiplexor 824selects the PID data from the register accumulator 823 or the adder 822.A register 825 stores and maximum and minimum output clipping signalsCmaxf and Cminf, and overflow signals. The signals out of the register825 are fed to a multiplexor 826 to generate the 24-bit compensationoutput Comp_out[23:0]. The clipping feature serves as a protectionmechanism for a PWM controlled power converter that limits the maximumand minimum duty cycle of the PWM signal. A plurality of compensationmemory blocks might be cascaded in series or in parallel to form ahigher order poles and zeros system.

The input and output signals from and to the programmable fabric asshown in FIG. 8 are collectively referred to as Din and Dout in theblock diagrams of FIG. 5B. For example, Din of FIG. 5B can includeData_in[17:0] and Emag[7:0], and Dout of FIG. 5B can include the PIDoutput Comp_out[23:0]. Referring to FIG. 6A and 8, Din and Dout arecontained in the digital filter 663, and the error signal E[n]corresponds to Din. The digital filter 663 computesP[n]=P[n−1]*a1+P[n−2]*a2+E[n]*a+E[n−1]*b+E[n−2]*c, where E[n]=Emag[7:0](typically 5-7 bit signal) and P[n]=Comp_out[23:0].

The compensation memory has a built-in arithematic scaling capability toadjust the accuracy needed to meet a control loop response. Arithmeticscaling revolves around the definition of a binary word and examinationof the arithmetic operations on that word. For example, two-worddefinitions are possible: integer and fractional. The 18-bit wide memoryblock RANI 811 can be represented as a single signed 18-bit integerdata. Alternatively, the 18-bit may represent a fractional valueconsisted of a 1-bit sign, 9-bit integer, and 8-bit fractional part.

For example, the resolution of the data stored in the RANI block 551 ais 1 mV, and a range of input signal Din is 0-255 mV. In this case, theprogrammable fabric routes an 8-bit RAM address Emag[7:0] to the RAM 811of the compensation memory 850. Depending on an error falling in eitherthe fine or coarse window, a 6-bit RANI address is used to select thegranularity of the fine or coarse windowing. For example, a finewindowing has a granularity 64, and a coarse windowing has a granularity64. The granularity 64 means plus or minus 64 mV for a fine windowingand plus or minus 512 mV for a coarse windowing. In addition, theprogrammable fabric routes the 2-bits of address ShiftBits[1:0]specifying a corresponding look-up table among the lookup tables storedin the compensation memory block (e.g., E[n]*a, E[n−1]*b, or E[n−2]*c),a fine/coarse windowing signal to specify the shifting bits of the 6-bitshift operator 813, and an error sign Esign to the 2's complimentoperator 814.

Referring to FIG. 5B, the output signal Dout of the compensation logic552, herein also referred to as a PID signal, is a digital valuerepresenting a duty cycle (pulse width) of a pulse width modulation(PWM) signal in a voltage mode. In a current mode, the PID signalrepresent a maximum current over which the switch of the regulator isturned off. The PWM signal can be used to drive a switch of a regulator(e.g., a high voltage power transistor block). FIG. 6A shows that theoutput of the digital filter 663 included in the compensation logic 552generate the PWM signal to drive the switch 652 of the regulator 650.Depending on the user's programming, the PLD can function as varioustypes of regulators, for example, a buck regulator, a boost regulator,and/or a multi-phase regulator, and different programmably digitalfiltering scheme may be employed depending on the configuration of thePLD.

The present PLD can support both synchronous and asynchronous optionsfor the PWM modulation. According to one embodiment, the compensation ofthe PWM signal can operate in either a voltage-mode or a current-mode.In the voltage-mode, a precision modulator timer (PMT) block (e.g., atimer array in FIG. 4) integrated the PLD can control the PWM pulse-ontime. In the current-mode, the current sense DAC of a high voltage powerblock (e.g., a high voltage power transistor block contained in the highvoltage power transistor blocks 103 in FIG. 1 or a power block in FIG.4) can control the PWM pulse-on time. The characteristics of the PWMsignal such as an amplitude (in voltage), a pulse width (or duty cycle)can be controlled by the programmable fabric.

According to one embodiment, the present compensation memory block canprovide a soft-start. During a transient period after start-up, an errorsignal may be limited to its maximum value, and a duty ratio of theoutput PWM signal can slowly increase from zero toward a steady-statevalue.

According to one embodiment, the compensation memory block can reduce amemory space required for providing PID compensation and improve theefficiency of computation using the lookup table. The lookup table canstore pre-computed data for generating a control output signal. In someembodiments, the lookup table can be used for generating an output for anonlinear system. In one embodiment, the compensation memory block canbe configured using a memory space available in a standard FPGA SRAMintegrated in the PLD. In some embodiments, a non-FPGA SRAM may be used.However, I/O pins to the non-FPGA SRAM are required, and I/O operationsto the non-FPGA SRAM are costly because they require an external I/O tothe non-FPGA SRAM. The output from the compensation memory block can beoptimized to be closely aligned with the needs and requirements of thepoint-of-load (POL) that the PLD provides.

According to one embodiment, the compensation memory block can shift theresolution between fine and coarse windowing. For example, the shiftingcan be performed using the ShiftBits register 815. For example, when anADi block is switched from a fine 1 mV resolution to a coarse 64 mVresolution, the same look-up table may be used by shifting the result by6-bits. Similarly, the same look-up table may be used for both positiveand negative numbers by 2's by complimenting the result and halving thebit requirement to cover both positive and negative input signals. Thecompensation memory block can have a regular register/address structurefor providing flexibility, for example, one-POL and two-POL compensator.Each of the compensation memory blocks can provide an independentcompensator sharing no resources for computation (e.g., multiplication,shifting errors). The compensation memory block can have a fullbandwidth for stability.

For example, the compensation memory block includes a lookup table of256-words by 18-bits that stores products (e.g., a*E, b*E, and c*E)corresponding to an error input in a fine range (e.g., −31 mV to 31 mV).The compensation memory block includes a shift register foraccommodating a shift bit, for example, 2-6 bits. Using the shiftregister, an input error out of the fine range can be obtained byshifting input error by the shift bit to cover a coarse range of theerror inputs (e.g., 0V to 1,024 mV) For a negative input error, thecompensation memory block subtracts the product for the negative errorinstead of adding. The symmetry of the lookup table can reduce the sizeof the RANI block required to cover a negative fine range (e.g., 0 mV to−31 mV). The negative coarse range of the errors can be similarlycovered by the changing the sign (subtraction instead of addition) ofthe product.

With dual ADi blocks used, both fine and coarse error results can becomputed simultaneously. If the coarse error is zero, then the fineresult is used. If the coarse error is not zero, then the coarse resultis used, and the products (a*E, b*E, c*E) are shifted in shifter 813 bythe number of bits corresponding the coarse setting (e.g., 5 bits for 32mV coarse setting). If the error is negative, then the result is negatedin 2's compliment block 814. The products, b*En−1, c*En−2, and c*En−1are saved in the registers 816, 817 and 818, respectively. The PID sumis accumulated in the register accumulator 823 from the adders 820, 821and 822. The PID sum is then routed through the multiplexors 824 and 826to the output Comp_out[23:0].

According to one embodiment, the memory block RAM 811 may include aplural set of lookup tables to support multiple plants system. Thecompensation output signal for each plant system can be output byreferring to each set of lookup tables sharing the same registers,adders, and other internal logics to generate multiplexed compensationoutput signal. This might be useful for time/performance insensitivesystems with limited resources or chip space. Each of the plural set oflookup tables may be used to manage different operational states of thesystem such as a start-up state, a steady state, or a transient state.

FIG. 9 shows a simplified circuit diagram of a voltage-mode regulator,according to one embodiment. The present example shows an asynchronousbuck regulator 900. The asynchronous buck regulator 900 includes anadaptive error digitizer block 911 (herein also referred to as an ADiblock), a voltage reference block 912 (herein also referred to as anNref block), a compensation memory block 950, a precision modulationtimer (PMT) block 953, and a high voltage power transistor block 955(herein also referred to as a SIM block). The feedback voltage Vfeedbackis compared against a reference voltage Vref supplied by the Nref block912 of the PLD using the ADi block 911. The ADi block 911 produces adigital error that is fed to the compensation memory 950 including anintegrated compensation logic 952. The calculated PID value (a sum ofthe three products E[n]*a, E[n−1]*b, and E[n−2]*c) controls the PMT 953by setting the PWM pulse width of a duty cycle. The PMT 953 controls theswitch of the SIM block 955, turning it on or off as required tomaintain the output voltage Vout at a constant voltage level.

FIG. 10 shows a simplified block diagram of an integrated current-moderegulator, according to one embodiment. The current-mode regulator 1000interfaces with a digital fabric 1010 that provides connection ofsignals among blocks integrated in a PLD. The current-mode regulator1000 includes a SIM block 1055, an Nref block 1012, and acurrent-sensing DAC comparator block 1013. The current through the SIMblock 1055 is compared against a current reference provided by the Nrefblock 1012. The CS-DAC comparator block 1013 compares the currentreference from the Nref block 1012 and the current through the SIM block1055 values and provides a current feedback control loop. The currentfeedback control loop of the current-mode regulator 1000 uses acompensation memory block 1050 and calculates a compensation value thatfeeds the CS-DAC comparator block 1013. The configuration shown in FIG.10 provides current-mode regulator 1000 with digital compensation.According to another embodiment, the current-mode regulation can supportover-current threshold protection and slope compensation.

FIG. 11 shows a simplified circuit diagram of a current-mode regulator,according to one embodiment. As in the voltage-mode control loopdiscussed above with reference to FIG. 9, the present example shows anasynchronous buck regulator 1100 operating in a current mode. Theasynchronous buck regulator 1100 includes an adaptive error digitizerblock 1111 (herein also referred to as ADi block), a voltage referenceblock 1112 (herein also referred to as an Nref block), a compensationmemory block 1150, a current-sensing DAC comparator (CS-DAC) block 1113,and a high voltage power transistor block 1155 (herein also referred toas a SIM block). The feedback voltage Vfeedback is compared against areference voltage Vref supplied by the Nref block 1112 using the ADiblock 1111. The ADi block 1111 provides an error signal that is fed tothe compensation memory block 1150 including an integrated compensationlogic 1152. In the current-mode regulation, the calculated PID signalfrom the compensation memory 1150 is fed to the CS-DAC comparator block1113. The PID signal that drives the CS-DAC comparator block 1113 has aspecific value of current at which the switch is turned off. Thatcurrent value to turn off the switch can be modified by a slopecompensation ramp depending on when the threshold is reached during thePWM cycle. The high-side switch can be turned on at the beginning of aPWM cycle. The pulse width is determined by the CS-DAC comparator block1113, and the CS-DAC comparator block 1113 turns the switch SIM 1115 offwhen the target PID current value is reached, thus regulating theinductor current to achieve the Vfeedback with a minimum error signal.The CS-DAC block 1113 compares the current flowing through the regulator1100 against the PID signal to control a switch of the SIM block 1115and turn it off as required to maintain a minimum error at the outputsignal Vout.

A memory block integrated in a programmable logic device (PLD) isdisclosed. The memory block includes: one or more lookup tables storingpre-populated data. The PLD includes a programmable fabric and a signalwrapper configured to provide signals between the memory block and theprogrammable fabric. The memory block is configured to receive inputsignals from the signal wrapper and generate output signals to thesignal wrapper by looking up the pre-populated data corresponding to theinput signals. The pre-populated data stored in the one or more lookuptables are programmably changed by programming a plurality of parametersof the programmable fabric and loading the pre-populated data to the oneor more lookup tables via the signal wrapper.

The memory block may further include a plurality of registers and aplurality of adders. The output signals of the memory block may begenerated by loading the looked-up data to the plurality of registers,and sequentially adding the data loaded in the plurality of registersusing the plurality of adders.

The pre-populated data may be programmably loaded to the one or morelookup tables based on an expected range of input signals.

The input signals to the memory block may be error signals of a voltageoutput, and the output signals from the memory block may be compensationsignals for the voltage output.

The pre-populated data may be programmably loaded to the one or morelookup tables based on an expected range of input signals and a signalcompensation scheme of the voltage output.

The signal compensation scheme of the voltage output may be aproportional-integral-derivative (PID) control.

The memory block may include three lookup tables, and each of the threelook tables may include the pre-populated data of a product of the inputsignals or delayed input signals multiplied by a predetermined constant.

The memory block may further include a shift register and a shiftoperator for shifting the input signals and generating shifted inputsignals.

The shifted input signals output from the shift operator may be used toselect a fine or course windowing to cover a broad range of inputsignals using the same one or more lookup tables.

The memory block may further include a 2's compliment operator. Theshift register may receive an error sign of the input signals, and the2's compliment operator may generate 2's complimented output signalsbased on the error sign.

The 2's complimented output signals output from the 2's complimentoperator may be used to cover a negative range of input signals usingthe same one or more lookup tables.

The pre-populated data stored in the one or more lookup tables mayinclude integer data.

The pre-populated data stored in the one or more lookup tables mayinclude a fractional data including a sign bit, a first portion ofinteger data, and a second portion of fractional data.

The pre-populated data stored in the one or more lookup tables mayinclude non-linear data.

According to another embodiment, a programmable logic device (PLD)includes: a memory block comprising one or more lookup tables storingpre-populated data; a programmable fabric; and a signal wrapperconfigured to provide signals between the memory block and theprogrammable fabric. The memory block is configured to receive inputsignals from the signal wrapper and generate output signals to thesignal wrapper by looking up the pre-populated data corresponding to theinput signals. The pre-populated data stored in the one or more lookuptables are programmably changed by programming a plurality of parametersof the programmable fabric and loading the pre-populated data to the oneor more lookup tables via the signal wrapper.

The above example embodiments have been described hereinabove toillustrate various embodiments of implementing a memory integrated in aPLD used for compensating signals in a power application. Variousmodifications and departures from the disclosed example embodiments willoccur to those having ordinary skill in the art. The subject matter thatis intended to be within the scope of the invention is set forth in thefollowing claims.

What is claimed is:
 1. A programmable logic device (PLD) comprising: amemory block including one or more lookup tables storing pre-populateddata, one or more registers, and one or more adders; a programmablefabric; and a signal wrapper configured to provide signals between thememory block and the programmable fabric, wherein the memory block isconfigured to receive input signals from the signal wrapper and generateoutput signals to the signal wrapper by looking up the pre-populateddata corresponding to the input signals, wherein the pre-populated datastored in the one or more lookup tables is programmably changed byprogramming the programmable fabric and loading the pre-populated datato the one or more lookup tables via the signal wrapper, and wherein theoutput signals of the memory block are generated by loading thelooked-up data to the one or more registers, and sequentially adding thedata loaded in the one or more registers using the one or more adders.2. The PLD of claim 1, wherein the pre-populated data is programmablyloaded to the one or more lookup tables based on an expected range ofthe input signals.
 3. The PLD of claim 1, wherein the memory blockincludes three lookup tables, and each of the three look tables includesthe pre-populated data of a product of the input signals or delayedinput signals multiplied by a predetermined constant.
 4. The PLD ofclaim 1, wherein the pre-populated data stored in the one or more lookuptables is integer data.
 5. The PLD of claim 1, wherein the pre-populateddata stored in the one or more lookup tables includes a fractional dataincluding a sign bit, a first portion of integer data, and a secondportion of the fractional data.
 6. The PLD of claim 1, wherein thepre-populated data stored in the one or more lookup tables includesnon-linear data.
 7. The PLD of claim 1, wherein the pre-populated datastored in the one or more lookup tables are dynamically loaded orupdated via the programmable fabric.
 8. A programmable logic device(PLD) comprising: a memory block including one or more lookup tablesstoring pre-populated data; a programmable fabric; and a signal wrapperconfigured to provide signals between the memory block and theprogrammable fabric, wherein the memory block is configured to receiveinput signals from the signal wrapper and generate output signals to thesignal wrapper by looking up the pre-populated data corresponding to theinput signals, wherein the pre-populated data stored in the one or morelookup tables is programmably changed by programming the programmablefabric and loading the pre-populated data to the one or more lookuptables via the signal wrapper, and wherein the input signals to thememory block are error signals of a voltage output, and the outputsignals from the memory block are compensation signals for the voltageoutput.
 9. The PLD of claim 8, wherein the pre-populated data isprogrammably loaded to the one or more lookup tables based on anexpected range of the input signals and a signal compensation scheme ofthe voltage output.
 10. The PLD of claim 9, wherein the signalcompensation scheme of the voltage output is aproportional-integral-derivative (PID) control.
 11. The PLD of claim 8,wherein the memory block includes three lookup tables, and each of thethree look tables includes the pre-populated data of a product of theinput signals or delayed input signals multiplied by a predeterminedconstant.
 12. The PLD of claim 8, wherein the pre-populated data storedin the one or more lookup tables is integer data.
 13. The PLD of claim8, wherein the pre-populated data stored in the one or more lookuptables includes a fractional data including a sign bit, a first portionof integer data, and a second portion of the fractional data.
 14. ThePLD of claim 8, wherein the pre-populated data stored in the one or morelookup tables are dynamically loaded or updated via the programmablefabric.
 15. A programmable logic device (PLD) comprising: a memory blockincluding one or more lookup tables storing pre-populated data, a shiftregister, and a 2's compliment operator; a programmable fabric; and asignal wrapper configured to provide signals between the memory blockand the programmable fabric, wherein the memory block is configured toreceive input signals from the signal wrapper and generate outputsignals to the signal wrapper by looking up the pre-populated datacorresponding to the input signals, wherein the pre-populated datastored in the one or more lookup tables is programmably changed byprogramming the programmable fabric and loading the pre-populated datato the one or more lookup tables via the signal wrapper, and wherein theshift register receives an error sign of the input signals, and the 2'scompliment operator generates 2's complimented output signals based onthe error sign.
 16. The PLD of claim 15, wherein the memory blockfurther includes a shift operator shifting the input signals andgenerating shifted input signals, wherein the shifted input signalsoutput from the shift operator are used to select a fine or coursewindowing to cover a broad range of the input signals using the one ormore lookup tables.
 17. The PLD of claim 15, wherein the 2'scomplimented output signals output from the 2's compliment operator areused to cover a negative range of the input signals using the one ormore lookup tables.
 18. The PLD of claim 15, wherein the pre-populateddata stored in the one or more lookup tables is integer data.
 19. ThePLD of claim 15, wherein the pre-populated data stored in the one ormore lookup tables includes a fractional data including a sign bit, afirst portion of integer data, and a second portion of the fractionaldata.
 20. The PLD of claim 15, wherein the pre-populated data stored inthe one or more lookup tables are dynamically loaded or updated via theprogrammable fabric.